package mest.dao.hws;

import mest.entity.plan_productjob_purchase_record;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_productjob_purchase_recordMapper {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int insert(@Param("theirDb") String theirDb,@Param("list") List<plan_productjob_purchase_record> record);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record") plan_productjob_purchase_record record);

    plan_productjob_purchase_record selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id")Integer id);

    List<Map<String,Object>> selectPrimary(@Param("theirDb") String theirDb, @Param("pppId") Integer pppId, @Param("limit") Integer limit, @Param("page") Integer page);

    int selectcount(@Param("theirDb") String theirDb,@Param("pppId")Integer pppId);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record")plan_productjob_purchase_record record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record")plan_productjob_purchase_record record);
}